//
//  RecommendCustomerTableViewCell.m
//  Kfangchan
//
//  Created by liran on 14/11/11.
//  Copyright (c) 2014年 Beijing Renjuren Network Technology Co., Ltd. All rights reserved.
//

#import "RecommendCustomerTableViewCell.h"

@interface RecommendCustomerTableViewCell()

@property (strong, nonatomic) Customer *customer;

@property (strong, nonatomic) IBOutlet UILabel *nameLabel;
@property (strong, nonatomic) IBOutlet UILabel *sexLabel;
@property (strong, nonatomic) IBOutlet UILabel *mobileLabel;
@property (strong, nonatomic) IBOutlet UILabel *remarkLabel;

@end

@implementation RecommendCustomerTableViewCell

- (void)awakeFromNib {
    UIImageView *line = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"partition.png"]];
    line.frame = CGRectMake(0, 44, 320, 0.5);
    [self.contentView addSubview:line];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

#pragma mark -
#pragma mark 封装cell
- (void)initCell:(Customer *)entity {
    self.customer = entity;

    self.nameLabel.text = self.customer.name;
    self.sexLabel.text = self.customer.sex;
    self.mobileLabel.text = self.customer.mobile;
    self.remarkLabel.text = self.customer.remark;
}

@end
